package com.engine.budget.service.impl;

import com.engine.budget.cmd.*;
import com.engine.budget.service.BusinessBudgetService;
import com.engine.core.impl.Service;

import java.util.Map;

/**
 * @author DY
 * @date 2024/7/8 9:30
 * @description: 预算执行指令接口实现类
 * @version 1.0
 */
public class BusinessBudgetServiceImpl  extends Service implements BusinessBudgetService {

    @Override
    public Map<String, Object> execBudget(Map<String, Object> params, Map<String, Object> otherMap) {
        return commandExecutor.execute(new ExecBudgetCmd(user, params, otherMap));
    }

    @Override
    public Map<String, Object> onlyExecBudget(Map<String, Object> params, Map<String, Object> otherMap) {
        return commandExecutor.execute(new OnlyExecBudgetCmd(params, otherMap));
    }

    @Override
    public Map<String, Object> verify(Map<String, Object> params, Map<String, Object> otherMap) {
        return commandExecutor.execute(new VerifyExecBudgetCmd(params, otherMap));
    }

    @Override
    public Map<String, Object> ecomPlatCtrl(Map<String, Object> params, Map<String, Object> otherMap) {
        return commandExecutor.execute(new EcomPlatCtrlCmd(user, params, otherMap));
    }

    @Override
    public Map<String, Object> queryItem(Map<String, Object> params) {
        return commandExecutor.execute(new GetYsxmdbCmd(user, params));
    }

    @Override
    public Map<String, Object> getFocusWork(Map<String, Object> params) {
        return commandExecutor.execute(new GetFocusWork(user,params));
    }

    @Override
    public Map<String, Object> getBudgetBotTab(Map<String, Object> params) {
        return commandExecutor.execute(new GetBudgetBotTab(user,params));
    }


    @Override
    public Map<String, Object> queryEvent(Map<String, Object> params) {
        return commandExecutor.execute(new GetYssxdbCmd(user, params));
    }

    @Override
    public Map<String, Object> queryOccupy(Map<String, Object> params) {
        return commandExecutor.execute(new GetYszybCmd(user, params));

    }

    @Override
    public Map<String, Object> createWeaReportCondition(Map<String, Object> params) {
        return commandExecutor.execute(new AnnualBudgetAdjustmentCmd(user,params));
    }

    @Override
    public Map<String, Object> queryExec(Map<String, Object> params) {
        return commandExecutor.execute(new GetYszxdbCmd(user, params));
    }

    @Override
    public Map<String, Object> updateAdjustmentInterface(Map<String, Object> params) {
        return commandExecutor.execute(new ActivationAdjustmentCmd(user,params));
    }
    public Map<String, Object> marketProjectEnable(Map<String, Object> params) {
        return commandExecutor.execute(new MarketProjectEnable(user, params));
    }

}
